<div class="payment" id="payment_&lt;%= payment.id %&gt;">
	<div id="payment_image" style="float: left; margin: 10px;">
		<% if payment.amount < 0 %>
			<%= image_tag("user_payment_minus.png")%>
		<% else %>
			<%=image_tag("user_payment_plus.png")%>
		<% end %>
	</div>
	<div class="payment_content" style="overflow: auto;">
		<%= link_to payment.user.name, :action => "show_user", :id => payment.user.id %>
		<div class="payment_ammount">
			<%= number_to_currency(payment.amount) %>
            <% if current_user.admin? %>
            <%= link_to image_tag("usun.png"), {:action => "delete_payment", :id => payment.id}, :confirm => 'Czy usunąć transakcję ' + ' ?' %>
            <%  end %>
		</div>
		<div class="date" style="margin-top: 0px;">
			<%= payment.created_at.to_datetime.to_s(:db) %>
		</div>
		<p style="font-size: 0.8em; margin: 5px;"><%= payment.comment %></p>
	</div>
</div>

